<?php
/**
 * Created by litong on Date: 2019/4/11 0011 上午 12:26
 */

class HttpClient {

  /**
   * @param $url
   * @param $header
   * @param $data
   * 发送get请求
   */
  public function get($url,$header,$data){
    $curl=curl_init();
    curl_setopt($curl,CURLOPT_URL,$url);
    if($header){
      //还不会设置头部信息,以后补全
    }
    if($data){

    }
    $result=curl_exec($curl);
    curl_close($curl);
    return $result;
  }

}